﻿@model sgp.Models.Funcionario

@{
    ViewBag.Title = "Detalhar dados de Funcionario";
}

@*<h2>Detalhes</h2>*@

<fieldset>
    <legend>Detalhes de Funcionario</legend>

    <table border="1" width="40%" cellpadding="4">

     <tr>
        <td>
            <div class="display-label"><b>Nome:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.Nome) 
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Matricula:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.Matricula) 
            </div>
        </td>
    </tr>
    
    <tr>
        <td>
            <div class="display-label"><b>Salario:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.Salario) 
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Email:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.Email) 
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>DataNascimento:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.DataNascimento)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>CPF:</b></div>
        </td>
        <td>
            <div class="display-field">
                @Html.DisplayFor(model => model.Cpf) 
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Endereço: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Rua)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Nº: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Numero)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Telefone: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Telefone)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Complemento: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Complemento)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Cep: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Cep)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Bairro: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Bairro)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Cidade: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Cidade)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>UF: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Endereco.Estado)
            </div>
        </td>
    </tr>

    <tr>
        <td>
            <div class="display-label"><b>Paroquia/Comunidade: </b></div>
        </td>
        <td>
            <div class="display-field">
            @Html.DisplayFor(model => model.Setor.Nome)
            </div>
        </td>
    </tr>
</table>
    <br />
    <table border="0" width="10%" cellpadding="3">
        <tr>
            <th>
                <a class="btn btn btn-small" href="/Funcionario/Edit/@Model.Id" data-original-title="">Editar</a>
            </th>
            <th></th>
             <th>
                  <a class="btn btn-inverse btn-small" href="/Funcionario/Index" data-original-title="">Voltar</a>
             </th>
        </tr>
    </table>